﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
namespace WebApplication1.BusinessLogic
{
    public class LoginBL
    {
        public bool ValidateUser(string UserId, string Password)
        {
            Data.DataAccess objDataAccess = new Data.DataAccess();
            DataSet dsUser = objDataAccess.GetUser(UserId, Password);


            if (dsUser.Tables.Count > 0 && dsUser.Tables[0].Rows.Count > 0)
            {
                return true;
            }
            else
                return false;
        }
    }
}